<?php
/**
 * (ajax)
 */
namespace App\Admin\Ajax\File;

use Illuminate\Support\Facades\Artisan;
class ParseZiNiaoFileAjax {

    public function parseFile(){
        try{
            Artisan::call('parse:file-ziniao');
            return response()->json(['status' => true, 'message' => '操作成功！']);
        }catch (\Exception $e){
            report($e);
            return response()->json(['status' => false, 'message' => '系统异常！']);
        }
    }
}
